.PHONY:all
all:publish_client consume_client

publish_client:publish_client.cpp ../mqCommon/proto/mq_proto.pb.cc ../mqCommon/proto/mq_message.pb.cc ../third/muduo/proto/codec.cc
	g++ -w -g -o $@ $^ -std=c++11 -lpthread -lmuduo_net -lmuduo_base -lprotobuf -lz
consume_client:consume_client.cpp ../mqCommon/proto/mq_proto.pb.cc ../mqCommon/proto/mq_message.pb.cc ../third/muduo/proto/codec.cc
	g++ -w -g -o $@ $^ -std=c++11 -lpthread -lmuduo_net -lmuduo_base -lprotobuf -lz

.PHONY:clean
clean:
	rm -rf publish_client consume_client